<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
${aier_doctype}
<html <s:property value="aier_html_xmlns" escape="false"/>>
<head>
<meta http-equiv="Content-Type" content="${aier_content_type}" />
<meta name="keywords" content="${aier_keyworks}" />
<meta name="description" content="${aier_description}" />
<link href="${aier_css_url}jc/chosen.css" rel="stylesheet">
<link href="${aier_css_url}jq/jq.css" rel="Stylesheet" />
<link rel="stylesheet" href="${aier_css_url}${aier_jqui_css}/ui.css" />
<link rel="stylesheet" href="${aier_css_url}comm/text.css" />
<link rel="stylesheet" href="${aier_css_url}admin/admin.css" />

<script type="text/javascript" src="${aier_js_url}j.js"></script>
<script type="text/javascript" src="${aier_js_url}b.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/afu.js"></script>
<script type="text/javascript" src="${aier_js_url}jt/td.js"></script>
<script type="text/javascript" src="${aier_js_url}lib/arrayList.js"></script>
<script type="text/javascript" src="${aier_js_url}${aier_jqui_js}ui.js"></script>
<script type="text/javascript" src="${aier_js_url}jp/msg.js"></script>
<script type="text/javascript"
	src="${aier_js_url}${aier_jqui_js}custominput.js"></script>
<script type="text/javascript"
	src="${aier_js_url}${aier_jqui_js}text.js"></script>
<style type="text/css">
.input_opacity{
	filter:alpha(opacity=0); -moz-opacity:0; opacity: 0;
}
.input_hidden{
	visibility: hidden;
}
</style>
</head>
<body style="background-color: #EEF2FB;">
	<div id="tabs">
		<ul>
			<li><a href="#tabs-1">批量导入学校信息</a></li>
		</ul>
		<div id="tabs-1" style="height: 500px;">
			<div class="d_content">
			
			    <div class="d_scnOut" style="margin-top: 10px;">
                    <div class="d_scname">
                        <label>选择文件:</label>
                    </div>
                    <div class="d_sctext">
                        <input type="file" id="file" name="file">
                    </div>
                </div>
                <button onclick="loadExcle();"
                    class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
                    role="button" aria-disabled="false"
                    style="margin-left: 320px; margin-top: -70px;">
                    <span class="ui-button-text">上传</span>
                </button>    
			     
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	$("#tabs").tabs();

	function loadExcle() {
		try {
			$
					.ajaxFileUpload({
						url : "${aier_url}${aier_urijs}quick_uploadExcelModule${aier_suffix}",
						secureuri : false,
						fileElementId : 'file',
						dataType : 'json',
						success : function(data, status) {

							if (1 == data.s) {
								alert("上传成功");
							} else {
								alert("上传失败");
								alert(data.se);
							}
						},
						error : function(data, status, e) {
							alert("服务器连接超时");
						}
					});
		} catch (e) {
			alert("服务器连接超时");
		}
	}


</script>
</html>